package cn.com.godliu.oauth2.repositorys;

import cn.com.godliu.oauth2.pojo.Accountclient;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.Optional;

public interface AccountClientRepository extends JpaRepository<Accountclient, Long> {

    @Query("select u from #{#entityName} u where u.clientid = ?1")
    Accountclient getAccoutByAppid(String appid);

}
